package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerMapper;
import com.ruoyi.passenger.domain.TbPassenger;
import com.ruoyi.passenger.service.ITbPassengerService;

/**
 * 用户基础信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class TbPassengerServiceImpl implements ITbPassengerService 
{
    @Autowired
    private TbPassengerMapper tbPassengerMapper;

    /**
     * 查询用户基础信息
     * 
     * @param passengerId 用户基础信息主键
     * @return 用户基础信息
     */
    @Override
    public TbPassenger selectTbPassengerByPassengerId(Long passengerId)
    {
        return tbPassengerMapper.selectTbPassengerByPassengerId(passengerId);
    }

    /**
     * 查询用户基础信息列表
     * 
     * @param tbPassenger 用户基础信息
     * @return 用户基础信息
     */
    @Override
    public List<TbPassenger> selectTbPassengerList(TbPassenger tbPassenger)
    {
        return tbPassengerMapper.selectTbPassengerList(tbPassenger);
    }

    /**
     * 新增用户基础信息
     * 
     * @param tbPassenger 用户基础信息
     * @return 结果
     */
    @Override
    public int insertTbPassenger(TbPassenger tbPassenger)
    {
        return tbPassengerMapper.insertTbPassenger(tbPassenger);
    }

    /**
     * 修改用户基础信息
     * 
     * @param tbPassenger 用户基础信息
     * @return 结果
     */
    @Override
    public int updateTbPassenger(TbPassenger tbPassenger)
    {
        return tbPassengerMapper.updateTbPassenger(tbPassenger);
    }

    /**
     * 批量删除用户基础信息
     * 
     * @param passengerIds 需要删除的用户基础信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerByPassengerIds(Long[] passengerIds)
    {
        return tbPassengerMapper.deleteTbPassengerByPassengerIds(passengerIds);
    }

    /**
     * 删除用户基础信息信息
     * 
     * @param passengerId 用户基础信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerByPassengerId(Long passengerId)
    {
        return tbPassengerMapper.deleteTbPassengerByPassengerId(passengerId);
    }

}
